package com.example.pt.service;

import com.example.pt.entity.Torrent;

import java.util.List;
import java.util.Optional;

public interface TorrentService {
    //推荐
    List<Torrent> getRecommendedTorrents();
    //种子详情
    Optional<Torrent> getDetailById(Long id);
//    boolean incrementDownloadCount(Long id);
    //促销
    List<Torrent> getDiscountedTorrents();
    //搜索
    List<Torrent> searchTorrents(String name);

}
